[gd_scene load_steps=13 format=2]

[ext_resource path="res://UIScenes/Artillery_Icon.tres" type="Texture" id=1]
[ext_resource path="res://UIScenes/Armored_Icon.tres" type="Texture" id=2]
[ext_resource path="res://UIScenes/AA_Icon.tres" type="Texture" id=3]
[ext_resource path="res://UIScenes/Infantry_Icon.tres" type="Texture" id=4]
[ext_resource path="res://UIScenes/Scripts/UnitList.gd" type="Script" id=5]
[ext_resource path="res://UIScenes/Scripts/DeckUI.gd" type="Script" id=6]
[ext_resource path="res://PreviewWorld.tscn" type="PackedScene" id=7]
[ext_resource path="res://UIScenes/UnitInfoParameter.tscn" type="PackedScene" id=8]
[ext_resource path="res://UIScenes/GoBackTextureButton.tscn" type="PackedScene" id=9]
[ext_resource path="res://Assets/theme.tres" type="Theme" id=10]

[sub_resource type="ButtonGroup" id=2]

[sub_resource type="ButtonGroup" id=1]

[node name="DeckUI" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 6 )

[node name="HBoxContainer" type="HBoxContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0

[node name="UnitList" type="ItemList" parent="HBoxContainer"]
margin_right = 638.0
margin_bottom = 720.0
size_flags_horizontal = 3
size_flags_vertical = 3
theme = ExtResource( 10 )
script = ExtResource( 5 )

[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer"]
margin_left = 642.0
margin_right = 1280.0
margin_bottom = 720.0
size_flags_horizontal = 3
size_flags_vertical = 3

[node name="ViewportContainer" type="ViewportContainer" parent="HBoxContainer/VBoxContainer"]
margin_right = 638.0
margin_bottom = 500.0
size_flags_horizontal = 3
size_flags_vertical = 3

[node name="Viewport" type="Viewport" parent="HBoxContainer/VBoxContainer/ViewportContainer"]
size = Vector2( 590, 500 )
handle_input_locally = false
hdr = false
disable_3d = true
usage = 0
render_target_update_mode = 3

[node name="World" parent="HBoxContainer/VBoxContainer/ViewportContainer/Viewport" instance=ExtResource( 7 )]

[node name="SpeedParameter" parent="HBoxContainer/VBoxContainer" instance=ExtResource( 8 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 504.0
margin_right = 638.0
margin_bottom = 573.0
size_flags_horizontal = 3
size_flags_vertical = 3
label = "Speed"

[node name="AttackParameter" parent="HBoxContainer/VBoxContainer" instance=ExtResource( 8 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 577.0
margin_right = 638.0
margin_bottom = 646.0
size_flags_horizontal = 3
size_flags_vertical = 3
label = "Attack"

[node name="DefenseParameter" parent="HBoxContainer/VBoxContainer" instance=ExtResource( 8 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 650.0
margin_right = 638.0
margin_bottom = 720.0
size_flags_horizontal = 3
size_flags_vertical = 3
label = "Defense"

[node name="VBoxContainer" type="HBoxContainer" parent="."]
margin_right = 638.0
margin_bottom = 32.0
size_flags_horizontal = 3
size_flags_vertical = 3
alignment = 1

[node name="GoBackTextureButton" parent="VBoxContainer" instance=ExtResource( 9 )]
margin_right = 124.0
margin_bottom = 32.0
group = SubResource( 2 )

[node name="AATextureButton" type="TextureButton" parent="VBoxContainer"]
margin_left = 128.0
margin_right = 252.0
margin_bottom = 32.0
hint_tooltip = "Anti-Air"
size_flags_horizontal = 3
size_flags_vertical = 3
toggle_mode = true
group = SubResource( 1 )
texture_normal = ExtResource( 3 )
expand = true
stretch_mode = 5

[node name="InfantryTextureButton" type="TextureButton" parent="VBoxContainer"]
margin_left = 256.0
margin_right = 381.0
margin_bottom = 32.0
hint_tooltip = "Infantry"
size_flags_horizontal = 3
size_flags_vertical = 3
toggle_mode = true
group = SubResource( 1 )
texture_normal = ExtResource( 4 )
expand = true
stretch_mode = 5

[node name="ArtilleryTextureButton" type="TextureButton" parent="VBoxContainer"]
margin_left = 385.0
margin_right = 509.0
margin_bottom = 32.0
hint_tooltip = "Artillery"
size_flags_horizontal = 3
size_flags_vertical = 3
toggle_mode = true
group = SubResource( 1 )
texture_normal = ExtResource( 1 )
expand = true
stretch_mode = 5

[node name="ArmoredTextureButton" type="TextureButton" parent="VBoxContainer"]
margin_left = 513.0
margin_right = 638.0
margin_bottom = 32.0
hint_tooltip = "Armored"
size_flags_horizontal = 3
size_flags_vertical = 3
toggle_mode = true
group = SubResource( 1 )
texture_normal = ExtResource( 2 )
expand = true
stretch_mode = 5

[connection signal="item_activated" from="HBoxContainer/UnitList" to="HBoxContainer/UnitList" method="_on_UnitList_item_activated"]
[connection signal="toggled" from="VBoxContainer/AATextureButton" to="." method="_on_AATextureButton_toggled"]
[connection signal="toggled" from="VBoxContainer/InfantryTextureButton" to="." method="_on_InfantryTextureButton_toggled"]
[connection signal="toggled" from="VBoxContainer/ArtilleryTextureButton" to="." method="_on_ArtilleryTextureButton_toggled"]
[connection signal="toggled" from="VBoxContainer/ArmoredTextureButton" to="." method="_on_ArmoredTextureButton_toggled"]
